package com.androsz.andslr.app;

import android.app.Activity;
import android.content.Intent;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbManager;
import android.os.Bundle;

public class PtpDeviceAttachedActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent i = getIntent();
		if (i != null
				&& i.getAction().equals(
						UsbManager.ACTION_USB_DEVICE_ATTACHED)) {
			startActivity(new Intent(this, ImportActivity.class).putExtras(i.getExtras()));
		}
		finish();
	}
}
